Skip to content

Fix mixed-type bounds handling in DiscretizedGrid#33

Merged
SamuelBadr merged 2 commits intomainfrom
fix-issue-30-mixed-bounds
Feb 13, 2026
Merged

Fix mixed-type bounds handling in DiscretizedGrid#33
SamuelBadr merged 2 commits intomainfrom
fix-issue-30-mixed-bounds

Conversation

@SamuelBadr
Copy link
Copy Markdown
Member

Summary

  • accept heterogeneous tuples in _to_tuple as long as tuple length matches dimension, so (0.0, 0) bounds work correctly
  • run dimension checks for all tuple bounds (not only NTuple) to keep error messages consistent
  • add a regression test covering mixed-type bounds with includeendpoint

Closes #30.

@SamuelBadr SamuelBadr merged commit a6e02e4 into main Feb 13, 2026
3 checks passed
@SamuelBadr SamuelBadr deleted the fix-issue-30-mixed-bounds branch February 13, 2026 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mixed types in bounds lead to confusing error

1 participant